<template>
  <div>
    <Update></Update>
    <List :students="students"></List>
  </div>
</template>

<script setup>
import List from '../components/student/List.vue'
import Update from '../components/student/Update.vue'
import {find} from '../services/student'
import {ref,onMounted} from 'vue'
const students = ref([]);
async function show(params){
  console.log("first")
    let res = await find(params);
    students.value = res.rows;
}
onMounted(() => {
  show();
});
</script>

<style>

</style>